<?php

/**
* @current cmsvisitors.php
* @author   LiuYang <liu_yang@haibao.com>
* @date 2017年2月9日 上午10:26:27
*/
namespace haibao\jiepai\model\data\visitors;

class CmsVisitors extends \haibao\jiepai\model\data\Base{

    /**
     *  1.安卓，2.苹果
     */
    const DEVICECATEGORY_ANDROID = 1;
    const DEVICECATEGORY_APPLE = 2;
    
    public $CreateTime;

    public $DeviceID;

    /**
     * 设备型号
     */
    public $DeviceType;
    
    public $DeviceCategory;
    /**
     * 设备系统版本
     */
    public $DeviceOsVersion;
    
    public $Flag;

    public function __construct(){
        parent::__construct();

        $this->setColumnName('Id', 'VisitorID');
        
        $this->dateField('CreateTime', 'CreateTime');
        $this->stringField('DeviceID', 'DeviceID');
        $this->stringField('DeviceType', 'DeviceType');
        $this->intField('DeviceCategory', 'DeviceCategory');
        $this->stringField('DeviceOsVersion', 'DeviceOsVersion');
        $this->intField('Flag', 'Flag',true);

        $this->setTableName('cms_visitors');
    }
}


